cmake_minimum_required(VERSION 3.1)
project(eigen_matrix)

set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake_module)
message(${CMAKE_MODULE_PATH})

find_package(Eigen3)
if(Eigen3_FOUND)
	message("Eigen3找到")
else()
	message("Eigen3没找到")
endif()

include_directories(${Eigen3_INCLUDE_DIRS})
message("Eigen3 include ${Eigen3_INCLUDE_DIRS}")
add_executable(${PROJECT_NAME} eigen_matrix.cpp)
